<div>
<form class="form-horizontal" role="form" name="tradeLogManageForm" novalidate>
  <div class="form-ctrl md-whiteframe-z1">
    <div class="form-search" style="height:160px;" ng-class="{true: 'shou'}[flag.formIsFold]">
      <div>
        <label >系统</label>
        <md-select ng-model="tradeLogManage.systemCode">
          <md-select-label>{{tradeLogManage.systemCode ? _getNames(tradeLogManage.systemCode,'name',selector.systems) : "统一支付"}}</md-select-label>
          <md-option ng-value="system"  ng-repeat="system in selector.systems">{{system.name}}</md-option>
        </md-select>
      </div>
      <div>
        <md-input-container flex>
          <label >指标</label>
          <input ng-model="tradeLogManage.indexName" name="index" pattern='^[^<>\\/:"*?]+$'>
          <div ng-messages="tradeLogManageForm.index.$error">
            <div ng-message="pattern">不能输入以下字符：< > \ / : " * ? </div>
          </div>
        </md-input-container>
      </div>
    </div>
    <i class="glyphicon glyphicon-chevron-up shrinkage" ng-show="flag.isQuery" ng-click="flag.formIsFold=true" ></i>
    <md-button ng-click="getTradeLog()" class="md-fab md-primary md-hue-1" aria-label="Profile" ng-disabled="tradeLogManageForm.$invalid">
      <i class="glyphicon glyphicon-search"  ng-show="!flag.formIsFold"></i>
      <i class="glyphicon glyphicon-arrow-down" style="margin-top:28px;" ng-show="flag.formIsFold"></i>
    </md-button>
  </div>
</form>
<div class="table-info">
  <div>
    <div class="menus" ng-show="flag.isQuery">
      <md-button ng-click="addIndexObj($event)" class="md-raised" style="background-color: #FF9800;color:white">新增指标</md-button>
      <md-button ng-click="deleteIndexObj($event)" class="md-raised" style="background-color: #FF9800;color:white">删除指标</md-button>
    </div>
    <div class="table-detail">
      <div class="t_r" style="padding: 0px 0px;">
        <table class="table table-bordered">
          <caption style="text-align:center;font-size:large;font-weight:bold;color:black">{{viewObj.systemCode === '11'? '统一支付指标管理':'物联网指标管理'}}</caption>
          <thead>
            <tr>
               <th style="width:40px"></th>
               <th>序号</th>
               <th>指标</th>
               <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="item in viewObj.series" ng-show="item.systemCode === viewObj.systemCode">
              <td style="width:40px">
                 <md-checkbox style="margin:0 auto" ng-model="item.isOnView" aria-label="$index" ></md-checkbox>
              </td>
              <td >{{$index+1}}</td>
              <td>{{item.indexDisplayName}}</td>
              <td >
                <a href="javacript:;" ng-click="setIndexObj(item,$event)">编辑</a>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
</div>